<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/include/taglibs.jsp"%>
<html>
<head>
<title>IPTV</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="styles/masakiForm.css">
<script type="text/javascript" src="scripts/huaxia.common.validator.js"></script>
<script type="text/javascript" src="scripts/huaxia.common.message.js"></script>
<script type="text/javascript" src="scripts/hx.utils.js"></script>


<style type="text/css">

a.modify {
	padding: 0px 0px 0px 16px;
	background-image: url("images/setting.gif");
	background-repeat: no-repeat;
	background-position: 0px center;
}

a.delete {
	padding: 0px 0px 0px 16px;
	background-image: url("images/email.gif");
	background-repeat: no-repeat;
	background-position: 0px center;
}

a.setting {
	padding: 0px 0px 0px 16px;
	background-image: url("images/setting.gif");
	background-repeat: no-repeat;
	background-position: 0px center;
}

.contact span {
	display: inline;
	background-repeat: no-repeat;
	background-position: 0px center;
	padding: 0px 0px 0px 16px;
	margin: 0px 4px;
}

.contact span.phone {
	background-image: url("images/phone.gif");
}

.contact span.mobile {
	background-image: url("images/mobile.gif");
}
</style>


</head>
<body style="background-color: #FDFDFD;">
<center>
<div id="errormsgspace" style="display: none;width: 600px"></div>
<div id="successmsgspace" style="display: none; width: 600px"></div>

<table width="600" border="0" cellpadding="0" cellspacing="0">
	<thead>
	<div style="text-align: center; color: red">${save}</div>
	</thead>
	<tbody>
		<tr>
			<td class="title" width="7"><img src="images/arc.gif" width="7"
				height="24"></td>
			<td class="title" valign="middle" width="495" align="left">进程管理</td>
		</tr>
		<tr>
			<td colspan="2">
			<table width="600" border="0" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<td width="600" align="center">
						<table class="space" width="600" align="center" border="0"
							cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td><strong>基本信息</strong></td>
								</tr>
							</tbody>
						</table>
						<table class="space" width="600" border="1" cellpadding="0"
							cellspacing="0">
							<tbody>
								<tr>
									<td>
									<table border="0">
										<tbody>
											<tr>
												<td width="75px"><strong>红外进程 </strong></td>
												<td>&nbsp;<select id="irProcess" name="irProcess" style="width: 75px;">
													<option value="-1">Error</option>
													<option value="4">启动</option>
													<option value="1">停止</option>
												</select></td>
												<td><a class="modify"
													href="RobotProcessCfgModifyAction.do?service=irProcess&command=start">启动	</a>
												<a class="delete"
													href="RobotProcessCfgModifyAction.do?service=irProcess&command=stop"> 停止 </a></td>
											</tr>
											<tr>
												<td><strong>QoS进程</strong></td>
												<td>&nbsp;<select id="qosProcess" name="qosProcess" style="width: 75px;">
													<option value="-1">Error</option>
													<option value="4">启动</option>
													<option value="1">停止</option>
												</select></td>
												<td><a class="modify"
													href="RobotProcessCfgModifyAction.do?service=qosProcess&command=start">启动</a>
												<a class="delete"
													href="RobotProcessCfgModifyAction.do?service=qosProcess&command=stop"> 停止 </a></td>
											</tr>
											<tr>
												<td width="75px"><strong>QoE进程</strong></td>
												<td>&nbsp;<select id="qoeProcess" name="qoeProcess" style="width: 75px;">
													<option value="-1">Error</option>
													<option value="4">启动</option>
													<option value="1">停止</option>
												</select></td>
												<td><a class="modify"
													href="RobotProcessCfgModifyAction.do?service=qoeProcess&command=start"> 启动 </a>
												<a class="delete"
													href="RobotProcessCfgModifyAction.do?service=qoeProcess&command=stop">停止</a></td>
											</tr>
											<tr>
												<td width="75px"><strong>IP上报进程</strong></td>
												<td>&nbsp;<select id="ipProcess" name="ipProcess" style="width: 75px;">
													<option value="-1">Error</option>
													<option value="4">启动</option>
													<option value="1">停止</option>
												</select></td>
												<td><a class="modify"
													href="RobotProcessCfgModifyAction.do?service=ipProcess&command=start"> 启动 </a>
												<a class="delete"
													href="RobotProcessCfgModifyAction.do?service=ipProcess&command=stop">停止</a></td>
											</tr>											
										</tbody>
									</table>
									</td>
								</tr>
							</tbody>
						</table>
						</td>
						<td class="vline" rowspan="5"><br>
						</td>
					</tr>
					<tr>
						<td class="hline"><img src="images/empty.gif" width="1"
							height="1"></td>
					</tr>
				</tbody>
			</table>
			</td>
		</tr>
	</tbody>
</table>

<script type="text/javascript">
			<c:set var="exceptionType">org.apache.struts.action.EXCEPTION</c:set>
			<c:set var="exception" value="${requestScope[exceptionType]}" />
			var error_msgs = new messager('errormsgspace',{messageType : 'ERROR', isImmediate : true});
			
			<c:if test="${exception != null}">
					error_msgs.addMessage('${exception.message}','<bean:message key="${exception.message}" bundle="${exception.bundle}" />');
			</c:if>
						
			var success_msgs = new messager('successmsgspace',{messageType : 'INFORMATION', isImmediate : true});
			
			<c:forEach var='message' items="${MessageCenter.messages}">
					alert("sdfsdfsdf");
					success_msgs.addMessage('${message.message}','<bean:message key="${message.message}" bundle="${message.bundle}" />');
			</c:forEach>
			
</script>

<script type="text/javascript">
	

	selectOption('irProcess','${configBean.irStatus}');
	selectOption('qosProcess','${configBean.qosStatus}');
	selectOption('qoeProcess','${configBean.qoeStatus}');
    selectOption('ipProcess','${configBean.ipReportStatus}');	
</script>
</center>
</body>
</html>